﻿
using System.Text;

using Mono.Cecil;

public class RetAstTree : LuaAstTree
{
    public LuaAstTree[] Results;
    public RetAstTree(LuaAstTree[] results)
    {
        Results = results;
    }
    public override void WriteTo(ICodeWriter writer)
    {
        writer.Code("return ");
        for (int i = 0; i < Results.Length; i++)
        {
            if (i > 0)
                writer.Code(", ");
            Results[i].WriteTo(writer);
        }
    }
}

